var express = require('express');
var router = express.Router();
const {getContracts,addContracts,delContractData,getcontractsById,loadImg,updateContracts}=require('../controllers/contracts.js');

//添加合同
router.get('/', getContracts);
router.post('/', addContracts);
router.delete('/',delContractData);
router.get('/:_id',getcontractsById)
router.post('/uploadImages',loadImg);
router.put('/',updateContracts);
module.exports = router;